<?php
namespace App\Http\Forms;

use App\Library\OSS;
use Kris\LaravelFormBuilder\Form;

class ExplosiveForm extends Form
{
    public function buildForm()
    {
        $this
            ->add('package_id', 'select', [
                'attr' => ['class' => "form-control select2"],
                'label' => "商品",
                'rules' => 'nullable|integer',
                'choices' => [],
            ])
            ->add('sort', 'text', [
                'label' => '排序权重',
                'rules' => 'nullable',
                'default_value' => 0
            ])
            ->add('submit', 'submit', [
                'attr' => ['class' => "form-control btn btn-success"],
                'label' => '保存',
            ]);
    }
}
